import {putMessage,intersect,SS_VALID} from '../Base.js';
import {MDCE_DRG} from '../DRG/MDCE_DRG.js';

export default function EB1_group(record){
    let adrg_zd=[];
    let adrg_zd1=[];
    let adrg_ss=["32.2500x001","32.2903","32.2905","32.3001","32.3900x003","32.3901","32.3902","32.4100","32.4100x002","32.4101","32.4900x002","32.4900x003","32.4901","32.4902","32.4903","32.5000x001","32.5001","32.5900x001","32.5901","32.6x00x002","32.6x00x004","32.9x00","33.0x00x004","33.3901","33.3902","33.3903","33.4300x002","33.4801","33.4802","33.4803","33.4804","34.0200x003","34.0300x001","34.0301","34.0900x011","34.0901","34.0902","34.0904","34.0905","34.0906","34.5100x004","34.5100x005","34.5200","34.5903","34.7301","34.7303","34.7900x002","38.0500x002","38.1500x001","38.1501","38.3500x002","38.3501","40.5900x012"];
    let adrg_ss1=[];
    let dept_list=[];
    
    if (true && record.ssList && adrg_ss.includes(record.ssList[0])){
        putMessage('符合EB1入组条件，匹配规则：主手术匹配');
        let drg=new MDCE_DRG();
        
        if (drg.EB19_group(record)){
            return 'EB19';
        }

        return 'EB1';
    }else{
        return '';
    }
}
  